<?php
require_once("Smarty/Smarty.class.php");
class Zen_Smarty
{
    public static function init()
    {
        $smarty = new Smarty();
        $smarty->template_dir = Zen::$vendor."/".Zen::$module."/Views/";
        $smarty->compile_dir  = Zen::$config['smarty']['compile_dir'];
        $smarty->config_dir   = Zen::$config['smarty']['config_dir'];
        $smarty->cache_dir    = Zen::$config['smarty']['cache_dir'];
        $smarty->allow_php_tag = Zen::$config['smarty']['allow_php_tag'];
        $smarty->allow_php_templates = Zen::$config['smarty']['allow_php_templates'];
        return $smarty;
    }
}
